import request from '@/utils/request'
import { getToken } from '@/utils/storage'
const token = getToken()
export const getArticles = (obj) => {
  return request.get('/interview/query', {
    params: {
      current: obj.current,
      sorter: obj.sorter,
      pageSize: 10
    },
    headers: {
      Authorization: `Bearer ${token}`
    }
  })
}

export const getArticleDetail = (id) => {
  return request.get('interview/show', {
    params: {
      id
    },
    headers: {
      Authorization: `Bearer ${token}`
    }
  })
}
